package com.company.behavioral.interparter_pattern.client;

import com.company.behavioral.interparter_pattern.context.InstructionHandler;

/**
 * @ClassName Client
 * @Author tiezheng.han
 * @Date 2020/9/4 15:16
 **/
public class Client {
    public static void main(String[] args) {
        String instruction = "down run 10 and left move 20";
        InstructionHandler handler = new InstructionHandler();
        handler.handle(instruction);
        String outString;
        outString = handler.output();
        System.out.println(outString);
    }
}
